
import request from '/@/utils/request'
export function add(data) {
  return request({
    url: 'admin/sys/user/add',
    method: 'post',
    data
  })
}
export function del(ids) {
  return request({
    url: 'admin/sys/user/delete',
    method: 'post',
    data: { userIds: ids }
  })
}
export function edit(data) {
  return request({
    url: 'admin/sys/user/update',
    method: 'post',
    data
  })
}
export function userinfo(params) {
  return request({
    url: 'admin/sys/user/info',
    method: 'get',
    params
  })
}



export function uploadpswd(data) {
  return request({
    url: 'admin/sys/user/password',
    method: 'post',
    data
  })
}




export default { add, edit, del }
